<template>
  <el-card>
    <template #header>订单数据展示</template>

    <div class="charts">
      <!-- 1.0 曲线图 -->
      <div class="line-charts">
        <h3>订单数据周对比</h3>
        <line-chart />
      </div>

      <!-- 2.0 饼图 -->
      <div class="pai-charts">
        <div>
          <PieChart01 />
        </div>
      </div>
    </div>
  </el-card>
</template>

<script>
import LineChart from './components/LineChart.vue'
import PieChart01 from './components/PieChart01.vue'

export default {
  components: {
    LineChart,
    PieChart01
  }
}
</script>

<style lang="less" scoped>
.charts {
  display: flex;
  justify-content: space-between;
}

.line-charts {
  flex: 0 0 55%;
  padding-top: 20px;

  h3 {
    text-align: center;
  }
}

.pai-charts {
  flex: 0 0 35%;
  display: flex;
  justify-content: center;
  align-items: center;

  div {
    width: 100%;
    padding-top: 20px;
  }
}
</style>
